package com.cmc.cloud.cmclink.doc.util;

import com.cmes.framework.i18ns.I18ns;
import org.springframework.stereotype.Component;

import java.util.Locale;

/**
 * @author lzp
 * @date 2025/10/10 10:57
 * @description
 */
@Component
public class I18nsUtil {
    private static final I18ns I_18_NS = I18ns.getInstance("exceptionMessageSource");
    public String getMessage(Integer code, Locale currentLocale) {
        return I_18_NS.getMessage(code.toString(), currentLocale);
    }
}
